$(function () {
    $('#discuss-box').keydown(function (event) {
        if (event.keyCode == 13) {// 回车事件3
            var text = $(this).val();
            var url = "http://121.42.24.161:8811/?s=index/chart/index";
            var data = {'content': text, 'game_id': 1};

            $.post(url, data, function (result) {
                // todo
                $(this).val("");
            }, 'json')
        }
    });
});